package com.aaa.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * @author ：zhouhangyong
 * @date ：Created in 2022/6/15 14:55
 * @description：自己创建的dao
 * @modified By：
 * @version:
 */
public interface MyDao<T> {
    /**
     * @return
     * @Author zhouhangyong
     * @Description 往数据库里添加一条数据//TODO
     * @Date 15:08 2022/6/15
     * @Param
     **/
    void saveEntity(T obj) throws IllegalAccessException, SQLException;

    void updateEntity(T obj) throws IllegalAccessException, SQLException;
    List<Map> selectEntity(String name) throws SQLException;
    void deleteEntity(T obj) throws IllegalAccessException, SQLException;

}
